from selenium import webdriver


class WebDriverSingle(object):
    __web_driver = webdriver.Firefox()

    @staticmethod
    def get_driver():
        return WebDriverSingle.__web_driver

    @staticmethod
    def get_new_driver():
        return webdriver.Chrome()


if __name__ == '__main__':
    WebDriverSingle.get_driver()
    print('1111')
    WebDriverSingle.get_driver()
    print('222')
    WebDriverSingle.get_driver()
    print('333')
